import Layout from "@/layout";

// 静态路由（默认路由）(常量路由) 所有的用户都可以看到的菜单路由
export const constantRoutes = [
  {
    path: "/login",
    component: () => import("@/views/login/index"),
    hidden: true,
  },
  {
    path: "/forget",
    component: () => import("@/views/login/forget"),
    hidden: true,
  },
  {
    path: "/404",
    component: () => import("@/views/404"),
    hidden: true,
  },

  {
    path: "/",
    component: Layout,
    redirect: "/kanban",
    children: [
      {
        path: "dashboard",
        name: "Dashboard",
        component: () => import("@/views/dashboard/index"),
        meta: { title: "网点财务", icon: "dashboard" },
      },
      {
        path: "/kanban",
        hidden: true,
        name: "kanban",
        component: () => import("@/views/branchFinance/kanban"),
        meta: { title: "财务看板", icon: "dashboard" },
      },
      {
        path: "/relationship",
        hidden: true,
        name: "relationship",
        component: () =>
          import("@/views/branchFinance/basicConfiguration/relationship"),
        meta: { title: "出港结算关系配置" },
      },
      {
        path: "/maintenance",
        hidden: true,
        name: "maintenance",
        component: () =>
          import("@/views/branchFinance/basicConfiguration/maintenance"),
        meta: { title: "出港结算参数维护" },
      },
      {
        path: "/pulleven",
        hidden: true,
        name: "pulleven",
        component: () =>
          import("@/views/branchFinance/basicConfiguration/pullEven"),
        meta: { title: "出港拉均配置" },
      },
      {
        path: "/subjects",
        hidden: true,
        name: "subjects",
        component: () =>
          import("@/views/branchFinance/basicConfiguration/subjects"),
        meta: { title: "科目配置" },
      },
      {
        path: "/export",
        hidden: true,
        name: "export",
        component: () =>
          import("@/views/branchFinance/basicConfiguration/export"),
        meta: { title: "出港自动导出配置" },
      },
      {
        path: "/userSetting",
        hidden: true,
        name: "userSetting",
        component: () => import("@/views/branchFinance/userSetting/index"),
        meta: { title: "客户配置" },
      },
      {
        path: "/shippingFee",
        hidden: true,
        name: "shippingFee",
        component: () =>
          import("@/views/branchFinance/outboundSettlement/shippingFee"),
        meta: { title: "出港发件费结算" },
      },
      {
        path: "/package",
        hidden: true,
        name: "package",
        component: () =>
          import("@/views/branchFinance/outboundSettlement/package"),
        meta: { title: "包仓费其他费用结算" },
      },
      {
        path: "/bill",
        hidden: true,
        name: "bill",
        component: () =>
          import("@/views/branchFinance/outboundSettlement/bill"),
        meta: { title: "客户账单管理" },
      },
      {
        path: "/pickup",
        hidden: true,
        name: "pickup",
        component: () =>
          import("@/views/branchFinance/outboundSettlement/pickUp"),
        meta: { title: "网点揽收分润账单" },
      },
      {
        path: "/quote",
        hidden: true,
        name: "quote",
        component: () =>
          import("@/views/branchFinance/outboundSettlement/quote"),
        meta: { title: "出港报价中心" },
      },
      {
        path: "/faceSheet",
        hidden: true,
        name: "faceSheet",
        component: () =>
          import("@/views/branchFinance/outboundSettlement/faceSheet"),
        meta: { title: "面单费报价" },
      },
      {
        path: "/collection",
        hidden: true,
        name: "collection",
        component: () =>
          import("@/views/branchFinance/outboundSettlement/collection"),
        meta: { title: "面单费补收" },
      },
      {
        path: "/settlement",
        hidden: true,
        name: "settlement",
        component: () =>
          import("@/views/branchFinance/outboundSettlement/settlement"),
        meta: { title: "代业务员对客户结算" },
      },
      {
        path: "/Incoming",
        hidden: true,
        name: "Incoming",
        component: () =>
          import("@/views/branchFinance/inboundSettlement/Incoming"),
        meta: { title: "进港派费明细" },
      },
      {
        path: "/dispatchFee",
        hidden: true,
        name: "dispatchFee",
        component: () =>
          import("@/views/branchFinance/inboundSettlement/dispatchFee"),
        meta: { title: "派费结算" },
      },
      {
        path: "/direct",
        hidden: true,
        name: "direct",
        component: () =>
          import("@/views/branchFinance/inboundSettlement/direct"),
        meta: { title: "派费直达管理" },
      },
      {
        path: "/reward",
        hidden: true,
        name: "reward",
        component: () => import("@/views/branchFinance/assessment/reward"),
        meta: { title: "奖罚分摊结算" },
      },
      {
        path: "/site",
        hidden: true,
        name: "site",
        component: () => import("@/views/branchFinance/fund/site"),
        meta: { title: "站点预付款" },
      },
      {
        path: "/headquarters",
        hidden: true,
        name: "headquarters",
        component: () => import("@/views/branchFinance/fund/headquarters"),
        meta: { title: "总部预付款" },
      },
      {
        path: "/Inheritance",
        hidden: true,
        name: "Inheritance",
        component: () => import("@/views/branchFinance/wages/Inheritance"),
        meta: { title: "承/业工资表" },
      },
      {
        path: "/Functions",
        hidden: true,
        name: "function",
        component: () => import("@/views/branchFinance/wages/function1"),
        meta: { title: "职能/其他人员工资表" },
      },
      {
        path: "/fixed",
        hidden: true,
        name: "fixed",
        component: () => import("@/views/branchFinance/wages/fixed"),
        meta: { title: "固定费用录入" },
      },
      {
        path: "/humanEffect",
        hidden: true,
        name: "humanEffect",
        component: () => import("@/views/branchFinance/business/humanEffect"),
        meta: { title: "人效统计分析" },
      },
      {
        path: "/Flow",
        hidden: true,
        name: "Flow",
        component: () => import("@/views/branchFinance/operation/Flow"),
        meta: { title: "出港流向结构分析" },
      },
      {
        path: "/structure",
        hidden: true,
        name: "structure",
        component: () => import("@/views/branchFinance/operation/structure"),
        meta: { title: "承/业流向结构分析" },
      },
      {
        path: "/client",
        hidden: true,
        name: "client",
        component: () => import("@/views/branchFinance/operation/client"),
        meta: { title: "客户流向结构分析" },
      },
      {
        path: "/region",
        hidden: true,
        name: "region",
        component: () => import("@/views/branchFinance/operation/region"),
        meta: { title: "区域收入分析" },
      },
      {
        path: "/weight",
        hidden: true,
        name: "weight",
        component: () => import("@/views/branchFinance/data/weight"),
        meta: { title: "重量差异报表" },
      },
      {
        path: "/packageWeight",
        hidden: true,
        name: "packageWeight",
        component: () => import("@/views/branchFinance/data/packageWeight"),
        meta: { title: "包重差异报表" },
      },
      {
        path: "/ReconciliationCenter",
        hidden: true,
        name: "ReconciliationCenter",
        component: () =>
          import("@/views/branchFinance/Reconciliation/ReconciliationCenter"),
        meta: { title: "承/业对账中心" },
      },
    ],
  },
  {
    path: "/",
    component: Layout,
    redirect: "/hqfinancepanel",
    children: [
      {
        path: "HqFinancePanel",
        hidden: true,
        name: "HqFinancePanel",
        component: () => import("@/views/HqFinancePanel/"),
        meta: { title: "总部财务" },
      },
      {
        path: "/DownloadHQ",
        hidden: true,
        name: "DownloadHQ",
        component: () => import("@/views/HqFinancePanel/commit/DownloadHQ"),
        meta: { title: "总部下载", icon: "dashboard" },
      },
      {
        path: "/NetworkBilling",
        hidden: true,
        name: "NetworkBilling",
        component: () => import("@/views/HqFinancePanel/commit/NetworkBilling"),
        meta: { title: "网点账单", icon: "dashboard" },
      },
      {
        path: "/InvoiceBill",
        hidden: true,
        name: "InvoiceBill",
        component: () => import("@/views/HqFinancePanel/commit/InvoiceBill"),
        meta: { title: "网点账单明细", icon: "dashboard" },
      },
      {
        path: "/InvoiceQuery",
        hidden: true,
        name: "InvoiceQuery",
        component: () => import("@/views/HqFinancePanel/commit/InvoiceQuery"),
        meta: { title: "网点账单确认", icon: "dashboard" },
      },
      {
        path: "/Statistics",
        hidden: true,
        name: "Statistics",
        component: () => import("@/views/HqFinancePanel/commit/Statistics"),
        meta: { title: "有偿件量统计", icon: "dashboard" },
      },
      {
        path: "/PaidTraffic",
        hidden: true,
        name: "PaidTraffic",
        component: () => import("@/views/HqFinancePanel/commit/PaidTraffic"),
        meta: { title: "有偿流量流向报表", icon: "dashboard" },
      },
      {
        path: "/PaidSettlement",
        hidden: true,
        name: "PaidSettlement",
        component: () => import("@/views/HqFinancePanel/commit/PaidSettlement"),
        meta: { title: "有偿结算明细查询", icon: "dashboard" },
      },
      {
        path: "/Comprehensive",
        hidden: true,
        name: "Comprehensive",
        component: () => import("@/views/HqFinancePanel/commit/Comprehensive"),
        meta: { title: "派费综合报表", icon: "dashboard" },
      },
      {
        path: "/SpecialSales",
        hidden: true,
        name: "SpecialSales",
        component: () => import("@/views/HqFinancePanel/commit/SpecialSales"),
        meta: { title: "特价业务报表", icon: "dashboard" },
      },
      {
        path: "/NewAgent",
        hidden: true,
        name: "NewAgent",
        component: () => import("@/views/HqFinancePanel/commit/NewAgent"),
        meta: { title: "新业务员报表", icon: "dashboard" },
      },
      {
        path: "/NauticalPolicy",
        hidden: true,
        name: "NauticalPolicy",
        component: () => import("@/views/HqFinancePanel/commit/NauticalPolicy"),
        meta: { title: "航海政策结算报表", icon: "dashboard" },
      },
      {
        path: "/Payment",
        hidden: true,
        name: "Payment",
        component: () => import("@/views/HqFinancePanel/commit/Payment"),
        meta: { title: "派费考核报表", icon: "dashboard" },
      },
      {
        path: "/CoDistribution",
        hidden: true,
        name: "CoDistribution",
        component: () => import("@/views/HqFinancePanel/commit/CoDistribution"),
        meta: { title: "共配业务结算报表", icon: "dashboard" },
      },
      {
        path: "/PlatformBilling",
        hidden: true,
        name: "PlatformBilling",
        component: () =>
          import("@/views/HqFinancePanel/commit/PlatformBilling"),
        meta: { title: "平台账单报表", icon: "dashboard" },
      },
      {
        path: "/CheckStand",
        hidden: true,
        name: "CheckStand",
        component: () => import("@/views/HqFinancePanel/commit/CheckStand"),
        meta: { title: "收银台", icon: "dashboard" },
      },
      {
        path: "/Account",
        hidden: true,
        name: "Account",
        component: () => import("@/views/HqFinancePanel/commit/Account"),
        meta: { title: "账户信息查看", icon: "dashboard" },
      },
      {
        path: "/Settlement1",
        hidden: true,
        name: "Settlement1",
        component: () => import("@/views/HqFinancePanel/commit/Settlement"),
        meta: { title: "结算账户余额查询", icon: "dashboard" },
      },
      {
        path: "/Transaction",
        hidden: true,
        name: "Transaction",
        component: () => import("@/views/HqFinancePanel/commit/Transaction"),
        meta: { title: "结算账户交易明细", icon: "dashboard" },
      },
      {
        path: "/Outlet",
        hidden: true,
        name: "Outlet",
        component: () => import("@/views/HqFinancePanel/commit/Outlet"),
        meta: { title: "网点开票申请", icon: "dashboard" },
      },
      {
        path: "/InvoiceBill1",
        hidden: true,
        name: "InvoiceBill1",
        component: () => import("@/views/HqFinancePanel/commit/InvoiceBill1"),
        meta: { title: "发票账单-网点", icon: "dashboard" },
      },
      {
        path: "/InvoiceQuery1",
        hidden: true,
        name: "InvoiceQuery1",
        component: () => import("@/views/HqFinancePanel/commit/InvoiceQuery1"),
        meta: { title: "已开发票查询", icon: "dashboard" },
      },
      {
        path: "/TransitCharge",
        hidden: true,
        name: "TransitCharge",
        component: () => import("@/views/HqFinancePanel/commit/TransitCharge"),
        meta: { title: "中转费报表", icon: "dashboard" },
      },
      {
        path: "/TransferWaybill",
        hidden: true,
        name: "TransferWaybill",
        component: () =>
          import("@/views/HqFinancePanel/commit/TransferWaybill"),
        meta: { title: "中转运单明细查询", icon: "dashboard" },
      },
      {
        path: "/ResponsibleFor",
        hidden: true,
        name: "ResponsibleFor",
        component: () => import("@/views/HqFinancePanel/commit/ResponsibleFor"),
        meta: { title: "包干结算报表", icon: "dashboard" },
      },
      {
        path: "/TransferAssessment",
        hidden: true,
        name: "TransferAssessment",
        component: () =>
          import("@/views/HqFinancePanel/commit/TransferAssessment"),
        meta: { title: "中转考核结算报表", icon: "dashboard" },
      },
      {
        path: "/NewOutbound",
        hidden: true,
        name: "NewOutbound",
        component: () => import("@/views/HqFinancePanel/commit/NewOutbound"),
        meta: { title: "新出港操作费报表", icon: "dashboard" },
      },
      {
        path: "/PackageCharge",
        hidden: true,
        name: "PackageCharge",
        component: () => import("@/views/HqFinancePanel/commit/PackageCharge"),
        meta: { title: "集包费报表", icon: "dashboard" },
      },
      {
        path: "/HandlingCharge",
        hidden: true,
        name: "HandlingCharge",
        component: () => import("@/views/HqFinancePanel/commit/HandlingCharge"),
        meta: { title: "操作装卸费报表", icon: "dashboard" },
      },
      {
        path: "/TransferBubble",
        hidden: true,
        name: "TransferBubble",
        component: () => import("@/views/HqFinancePanel/commit/TransferBubble"),
        meta: { title: "中转计泡报表", icon: "dashboard" },
      },
      {
        path: "/TransferDifference",
        hidden: true,
        name: "TransferDifference",
        component: () =>
          import("@/views/HqFinancePanel/commit/TransferDifference"),
        meta: { title: "中转差重报表", icon: "dashboard" },
      },
      {
        path: "/PortHandling",
        hidden: true,
        name: "PortHandling",
        component: () => import("@/views/HqFinancePanel/commit/PortHandling"),
        meta: { title: "进港操作费报表", icon: "dashboard" },
      },
      {
        path: "/ReturnOperating",
        hidden: true,
        name: "ReturnOperating",
        component: () =>
          import("@/views/HqFinancePanel/commit/ReturnOperating"),
        meta: { title: "退件操作费报表", icon: "dashboard" },
      },
      {
        path: "/ReturnTransfer",
        hidden: true,
        name: "ReturnTransfer",
        component: () => import("@/views/HqFinancePanel/commit/ReturnTransfer"),
        meta: { title: "退件中转费报表", icon: "dashboard" },
      },
      {
        path: "/HeterosexualParts",
        hidden: true,
        name: "HeterosexualParts",
        component: () =>
          import("@/views/HqFinancePanel/commit/HeterosexualParts"),
        meta: { title: "异形件结算报表", icon: "dashboard" },
      },
      {
        path: "/OtherExpense",
        hidden: true,
        name: "OtherExpense",
        component: () => import("@/views/HqFinancePanel/commit/OtherExpense"),
        meta: { title: "其他费用报表", icon: "dashboard" },
      },
      {
        path: "/HumanEffect1",
        hidden: true,
        name: "HumanEffect1",
        component: () => import("@/views/HqFinancePanel/commit/HumanEffect"),
        meta: { title: "新面单返利报表", icon: "dashboard" },
      },
    ],
  },
  {
    path: "/",
    component: Layout,
    redirect: "/PersonalCenter",
    children: [
      {
        path: "/PersonalCenter",
        hidden: true,
        name: "PersonalCenter",
        component: () => import("@/views/PersonalCenter"),
        meta: { title: "个人中心" },
      },
    ],
  },
  {
    path: "/",
    component: Layout,
    redirect: "/Technical",
    children: [
      {
        path: "/Technical",
        hidden: true,
        name: "Technical",
        component: () => import("@/views/PersonalCenter/Technical"),
        meta: { title: "技术支持" },
      },
    ],
  },
  {
    path: "/",
    component: Layout,
    redirect: "/qualityControlCenter",
    children: [
      {
        path: "QualityControlCenter",
        hidden: true,
        name: "QualityControlCenter",
        component: () => import("@/views/QualityControlCenter"),
        meta: { title: "质控中心" },
      },
      {
        path: "Assess",
        hidden: true,
        name: "Assess",
        component: () => import("@/views/QualityControlCenter/commit/Assess"),
        meta: { title: "时效考核" },
      },
      {
        path: "Information",
        hidden: true,
        name: "Information",
        component: () =>
          import("@/views/QualityControlCenter/commit/Information"),
        meta: { title: "信息指数考核" },
      },
      {
        path: "Complaints",
        hidden: true,
        name: "Complaints",
        component: () =>
          import("@/views/QualityControlCenter/commit/Complaints"),
        meta: { title: "虚假签收投诉" },
      },
      {
        path: "Standards",
        hidden: true,
        name: "Standards",
        component: () =>
          import("@/views/QualityControlCenter/commit/Standards"),
        meta: { title: "网点通知达标统计" },
      },
    ],
  },
  {
    path: "/",
    component: Layout,
    redirect: "/management",
    children: [
      {
        path: "/star",
        hidden: true,
        name: "star",
        component: () => import("@/views/Management/Star"),
        meta: { title: "五星管理" },
      },
      {
        path: "/network",
        hidden: true,
        name: "NetworkSettle",
        component: () => import("@/views/Management/NetworkSettlement"),
        meta: { title: "网点结算" },
      },
      {
        path: "/console",
        hidden: true,
        name: "Console",
        component: () => import("@/views/Management/Console"),
        meta: { title: "监控台" },
      },
      {
        path: "/monitoring",
        hidden: true,
        name: "Monitoring",
        component: () => import("@/views/Management/Monitoring"),
        meta: { title: "揽收监控" },
      },
      {
        path: "/workorder",
        hidden: true,
        name: "WorkOrder",
        component: () => import("@/views/Management/WorkOrder"),
        meta: { title: "工单管理" },
      },
      {
        path: "/quality1",
        hidden: true,
        name: "QualityStatement1",
        component: () => import("@/views/Management/QualityStatement1"),
        meta: { title: "质量报表1" },
      },
      {
        path: "/quality2",
        hidden: true,
        name: "QualityStatement2",
        component: () => import("@/views/Management/QualityStatement2"),
        meta: { title: "质量报表2" },
      },
      {
        path: "/customerreport",
        hidden: true,
        name: "CustomerReport",
        component: () => import("@/views/Management/Customer"),
        meta: { title: "客服报表" },
      },
    ],
  },
  {
    path: "/",
    component: Layout,
    redirect: "/Customer",
    children: [
      {
        path: "Customer",
        hidden: true,
        name: "Customer",
        component: () => import("@/views/Customer"),
        meta: { title: "客服中心" },
      },
      {
        path: "collaboration",
        hidden: true,
        name: "collaboration",
        component: () => import("@/views/Customer/commit/collaboration"),
        meta: { title: "协作任务" },
      },
      // {
      //   path: 'notreceived',
      //   hidden: true,
      //   name: 'notreceived',
      //   component: () => import('@/views/Customer/commit/notreceived'),
      //   meta: { title: '收到任务' },
      // },
      {
        path: "processing",
        hidden: true,
        name: "processing",
        component: () => import("@/views/Customer/commit/processing"),
        meta: { title: "工单处理质量统计" },
      },
      {
        path: "TicketBilling",
        hidden: true,
        name: "TicketBilling",
        component: () => import("@/views/Customer/commit/TicketBilling"),
        meta: { title: "客诉工单账单" },
      },
      {
        path: "ClaimBills",
        hidden: true,
        name: "ClaimBills",
        component: () => import("@/views/Customer/commit/ClaimBills"),
        meta: { title: "理赔账单" },
      },
      {
        path: "NotUp",
        hidden: true,
        name: "NotUp",
        component: () => import("@/views/Customer/commit/NotUp"),
        meta: { title: "签收率未达标考核" },
      },
    ],
  },
  {
    path: "/",
    component: Layout,
    redirect: "/StatisticalCenter",
    children: [
      {
        path: "StatisticalCenter",
        hidden: true,
        name: "StatisticalCenter",
        component: () => import("@/views/StatisticalCenter"),
        meta: { title: "统计中心" },
      },
      {
        path: "GrossProfit",
        hidden: true,
        name: "GrossProfit",
        component: () => import("@/views/StatisticalCenter/commit/GrossProfit"),
        meta: { title: "客户毛利测算表" },
      },
      {
        path: "MonthlyStatement",
        hidden: true,
        name: "MonthlyStatement",
        component: () =>
          import("@/views/StatisticalCenter/commit/MonthlyStatement.vue"),
        meta: { title: "客户月结账单" },
      },
      {
        path: "ContractingArea",
        hidden: true,
        name: "ContractingArea",
        component: () =>
          import("@/views/StatisticalCenter/commit/ContractingArea"),
        meta: { title: "出港发件成本报表" },
      },
      {
        path: "packageGrossProfit",
        hidden: true,
        name: "packageGrossProfit",
        component: () =>
          import("@/views/StatisticalCenter/commit/packageGrossProfit"),
        meta: { title: "出港包仓毛利报表" },
      },
      {
        path: "OutboundGrossProfit",
        hidden: true,
        name: "OutboundGrossProfit",
        component: () =>
          import("@/views/StatisticalCenter/commit/OutboundGrossProfit"),
        meta: { title: "出港返利毛利报表" },
      },
      {
        path: "FixedFeeDeduction",
        hidden: true,
        name: "FixedFeeDeduction",
        component: () =>
          import("@/views/StatisticalCenter/commit/FixedFeeDeduction.vue"),
        meta: { title: "固定费用扣款表" },
      },
      {
        path: "SingleMargin",
        hidden: true,
        name: "SingleMargin",
        component: () =>
          import("@/views/StatisticalCenter/commit/SingleMargin.vue"),
        meta: { title: "面单毛利表" },
      },
      {
        path: "BackOffice",
        hidden: true,
        name: "BackOffice",
        component: () =>
          import("@/views/StatisticalCenter/commit/BackOffice.vue"),
        meta: { title: "管理操作后勤工资表" },
      },
      {
        path: "CurrentAccount",
        hidden: true,
        name: "CurrentAccount",
        component: () =>
          import("@/views/StatisticalCenter/commit/CurrentAccount.vue"),
        meta: { title: "直营网点往来帐单" },
      },
      {
        path: "ContractedDistrictAccount",
        hidden: true,
        name: "ContractedDistrictAccount",
        component: () =>
          import(
            "@/views/StatisticalCenter/commit/ContractedDistrictAccount.vue"
          ),
        meta: { title: "承包区往来帐单" },
      },
      {
        path: "ExpenseAmortization",
        hidden: true,
        name: "ExpenseAmortization",
        component: () =>
          import("@/views/StatisticalCenter/commit/ExpenseAmortization.vue"),
        meta: { title: "承包区月度费用摊销表" },
      },
      {
        path: "HeadquartersSummary",
        hidden: true,
        name: "HeadquartersSummary",
        component: () =>
          import("@/views/StatisticalCenter/commit/HeadquartersSummary.vue"),
        meta: { title: "总部收支汇总表" },
      },
      {
        path: "BankSummary",
        hidden: true,
        name: "BankSummary",
        component: () =>
          import("@/views/StatisticalCenter/commit/BankSummary.vue"),
        meta: { title: "银行日记收支汇总表" },
      },
      {
        path: "CustomerBill",
        hidden: true,
        name: "CustomerBill",
        component: () =>
          import("@/views/StatisticalCenter/commit/CustomerBill.vue"),
        meta: { title: "客户账单核销表" },
      },
      {
        path: "FixedCharge",
        hidden: true,
        name: "FixedCharge",
        component: () =>
          import("@/views/StatisticalCenter/commit/FixedCharge.vue"),
        meta: { title: "固定费用摊销表" },
      },
      {
        path: "InventoryTaking",
        hidden: true,
        name: "InventoryTaking",
        component: () =>
          import("@/views/StatisticalCenter/commit/InventoryTaking.vue"),
        meta: { title: "面单充值数量盘存表" },
      },
      {
        path: "AccountBalance",
        hidden: true,
        name: "AccountBalance",
        component: () =>
          import("@/views/StatisticalCenter/commit/AccountBalance.vue"),
        meta: { title: "科目余额表" },
      },
      {
        path: "Profit",
        hidden: true,
        name: "Profit",
        component: () => import("@/views/StatisticalCenter/commit/Profit.vue"),
        meta: { title: "利润表" },
      },
      {
        path: "Liabilities",
        hidden: true,
        name: "Liabilities",
        component: () =>
          import("@/views/StatisticalCenter/commit/Liabilities.vue"),
        meta: { title: "负债表" },
      },
      {
        path: "ContractingAreaDetail",
        hidden: true,
        name: "ContractingAreaDetail",
        component: () =>
          import("@/views/StatisticalCenter/commit/ContractingAreaDetail.vue"),
        meta: { title: "出港发件成本报表明细" },
      },
      {
        path: "QualityControlCosts",
        hidden: true,
        name: "QualityControlCosts",
        component: () =>
          import("@/views/StatisticalCenter/commit/QualityControlCosts"),
        meta: { title: "质控费用汇总报表" },
      },
      {
        path: "WorkableQualityControlCosts",
        hidden: true,
        name: "WorkableQualityControlCosts",
        component: () =>
          import(
            "@/views/StatisticalCenter/commit//WorkableQualityControlCosts"
          ),
        meta: { title: "落实质控费用汇总报表" },
      },
      {
        path: "QualityControlCostsDetail",
        hidden: true,
        name: "QualityControlCostsDetail",
        component: () =>
          import("@/views/StatisticalCenter/commit/QualityControlCostsDetail"),
        meta: { title: "质控费用汇总报表明细" },
      },
      {
        path: "paymentsReport",
        hidden: true,
        name: "paymentsReport",
        component: () =>
          import("@/views/StatisticalCenter/commit/paymentsReport"),
        meta: { title: "总部收支汇总报表" },
      },
      {
        path: "paymentsReportDetail",
        hidden: true,
        name: "paymentsReportDetail",
        component: () =>
          import("@/views/StatisticalCenter/commit/paymentsReportDetail"),
        meta: { title: "总部收支汇总报表明细" },
      },
      {
        path: "CashFlowWater",
        hidden: true,
        name: "CashFlowWater",
        component: () =>
          import("@/views/StatisticalCenter/commit/CashFlowWater"),
        meta: { title: "现金流水账单" },
      },
      {
        path: "BillWriteOff",
        hidden: true,
        name: "BillWriteOff",
        component: () =>
          import("@/views/StatisticalCenter/commit/BillWriteOff"),
        meta: { title: "客户账单核销表" },
      },
      {
        path: "accountingbill",
        hidden: true,
        name: "accountingbill",
        component: () =>
          import("@/views/StatisticalCenter/commit/accountingbill"),
        meta: { title: "核算清单" },
      },
      {
        path: "PaymentSummary",
        hidden: true,
        name: "PaymentSummary",
        component: () =>
          import("@/views/StatisticalCenter/commit/PaymentSummary"),
        meta: { title: "承包区付款汇总表" },
      },
      {
        path: "FlowDirection",
        hidden: true,
        name: "FlowDirection",
        component: () =>
          import("@/views/StatisticalCenter/commit/FlowDirection"),
        meta: { title: "流向均重监控表" },
      },
      {
        path: "FlowDirectionDetail",
        hidden: true,
        name: "FlowDirectionDetail",
        component: () =>
          import("@/views/StatisticalCenter/commit/FlowDirectionDetail"),
        meta: { title: "流向均重监控表明细" },
      },
      {
        path: "InboundGrossProfit",
        hidden: true,
        name: "InboundGrossProfit",
        component: () =>
          import("@/views/StatisticalCenter/commit/InboundGrossProfit"),
        meta: { title: "进港派件毛利报表" },
      },
      {
        path: "InboundGrossProfitDetail",
        hidden: true,
        name: "InboundGrossProfitDetail",
        component: () =>
          import(
            "@/views/StatisticalCenter/commit/InboundGrossProfitDetail.vue"
          ),
        meta: { title: "进港派件毛利报表明细" },
      },
      {
        path: "OutboundGrossProfitDetail",
        hidden: true,
        name: "OutboundGrossProfitDetail",
        component: () =>
          import("@/views/StatisticalCenter/commit/OutboundGrossProfitDetail"),
        meta: { title: "出港返利毛利报表明细" },
      },
      {
        path: "packageGrossProfitDetail",
        hidden: true,
        name: "packageGrossProfitDetail",
        component: () =>
          import("@/views/StatisticalCenter/commit/packageGrossProfitDetail"),
        meta: { title: "出港包仓毛利报表明细" },
      },
      {
        path: "HeadquartersBills",
        hidden: true,
        name: "HeadquartersBills",
        component: () =>
          import("@/views/StatisticalCenter/commit/HeadquartersBills"),
        meta: { title: "总部账单" },
      },
      {
        path: "LiabilityStatement",
        hidden: true,
        name: "LiabilityStatement",
        component: () =>
          import("@/views/StatisticalCenter/commit/LiabilityStatement"),
        meta: { title: "负债报表" },
      },
      {
        path: "ProfitStatement",
        hidden: true,
        name: "ProfitStatement",
        component: () =>
          import("@/views/StatisticalCenter/commit/ProfitStatement"),
        meta: { title: "损益报表" },
      },
      {
        path: "RechargeSheet",
        hidden: true,
        name: "RechargeSheet",
        component: () =>
          import("@/views/StatisticalCenter/commit/RechargeSheet"),
        meta: { title: "面单充值" },
      },
      {
        path: "EstimatedCost",
        hidden: true,
        name: "EstimatedCost",
        component: () =>
          import("@/views/StatisticalCenter/commit/EstimatedCost"),
        meta: { title: "预估费用" },
      },
    ],
  },
  {
    path: "/",
    component: Layout,
    redirect: "/user",
    children: [
      {
        path: "User",
        hidden: true,
        name: "User",
        component: () => import("@/views/system/user/index.vue"),
        meta: { title: "用户管理" },
      },
      {
        path: "Role",
        hidden: true,
        name: "Role",
        component: () => import("@/views/system/role/index.vue"),
        meta: { title: "角色管理" },
      },
    ],
  },

  // Branch Finance 网点财务

  // path: '/kanban',
  //   component: Layout,
  //   hidden: false,
  //   component: () => import('@/views/branchFinance/kanban'),
];

// 定义动态路由(异步路由)根据用户登录返回的路由权限信息决定从动态路由中取出路由
export const allAsyncRoutes = [
  // 商品管理路由
  {
    path: "/product",
    component: Layout,
    redirect: "/product/Category",
    name: "Product",
    meta: { title: "商品管理", icon: "el-icon-sell" },
    children: [
      {
        path: "trademark",
        name: "Trademark",
        component: () => import("@/views/product/Trademark/index.vue"),
        meta: { title: "品牌管理", icon: "el-icon-bank-card" },
      },
      {
        path: "attr",
        name: "Attr",
        component: () => import("@/views/product/Attr/index.vue"),
        meta: { title: "平台属性管理", icon: "el-icon-film" },
      },
      {
        path: "spu",
        name: "Spu",
        component: () => import("@/views/product/Spu/index.vue"),
        meta: { title: "Spu管理", icon: "el-icon-notebook-2" },
      },
      {
        path: "sku",
        name: "Sku",
        component: () => import("@/views/product/Sku/index.vue"),
        meta: { title: "Sku管理", icon: "el-icon-notebook-1" },
      },
    ],
  },
  // 权限管理
  {
    path: "/acl",
    component: Layout,
    redirect: "/acl/permission",
    name: "Acl",
    meta: { title: "权限管理", icon: "el-icon-setting" },
    children: [
      {
        path: "user",
        name: "User",
        component: () => import("@/views/acl/user/index.vue"),
        meta: { title: "用户管理" },
      },
      {
        path: "role",
        name: "Role",
        component: () => import("@/views/acl/role/index.vue"),
        meta: { title: "角色管理" },
      },
      {
        name: "RoleAuth",
        path: "role/auth",
        component: () => import("@/views/acl/role/roleAuth.vue"),
        hidden: true,
      },
      {
        path: "permission",
        name: "Permission",
        component: () => import("@/views/acl/permission/index.vue"),
        meta: { title: "菜单管理" },
      },
    ],
  },
  // example
  {
    path: "/example",
    component: Layout,
    redirect: "/example/table",
    name: "Example",
    meta: { title: "Example", icon: "el-icon-s-help" },
    children: [
      {
        path: "table",
        name: "Table",
        component: () => import("@/views/table/index"),
        meta: { title: "Table", icon: "table" },
      },
      {
        path: "tree",
        name: "Tree",
        component: () => import("@/views/tree/index"),
        meta: { title: "Tree", icon: "tree" },
      },
    ],
  },

  // form
  {
    path: "/form",
    component: Layout,
    children: [
      {
        path: "index",
        name: "Form",
        component: () => import("@/views/form/index"),
        meta: { title: "Form", icon: "form" },
      },
    ],
  },
  // nested
  {
    path: "/nested",
    component: Layout,
    redirect: "/nested/menu1",
    name: "Nested",
    meta: {
      title: "Nested",
      icon: "nested",
    },
    children: [
      {
        path: "menu1",
        component: () => import("@/views/nested/menu1/index"), // Parent router-view
        name: "Menu1",
        meta: { title: "Menu1" },
        children: [
          {
            path: "menu1-1",
            component: () => import("@/views/nested/menu1/menu1-1"),
            name: "Menu1-1",
            meta: { title: "Menu1-1" },
          },
          {
            path: "menu1-2",
            component: () => import("@/views/nested/menu1/menu1-2"),
            name: "Menu1-2",
            meta: { title: "Menu1-2" },
            children: [
              {
                path: "menu1-2-1",
                component: () =>
                  import("@/views/nested/menu1/menu1-2/menu1-2-1"),
                name: "Menu1-2-1",
                meta: { title: "Menu1-2-1" },
              },
              {
                path: "menu1-2-2",
                component: () =>
                  import("@/views/nested/menu1/menu1-2/menu1-2-2"),
                name: "Menu1-2-2",
                meta: { title: "Menu1-2-2" },
              },
            ],
          },
          {
            path: "menu1-3",
            component: () => import("@/views/nested/menu1/menu1-3"),
            name: "Menu1-3",
            meta: { title: "Menu1-3" },
          },
        ],
      },
      {
        path: "menu2",
        component: () => import("@/views/nested/menu2/index"),
        name: "Menu2",
        meta: { title: "menu2" },
      },
    ],
  },
  // external-link
  {
    path: "external-link",
    component: Layout,
    children: [
      {
        path: "https://panjiachen.github.io/vue-element-admin-site/#/",
        meta: { title: "External Link", icon: "link" },
      },
    ],
  },
];
//  任意路由:：这个路由是用户随意输入路径的时候要匹配的，最终重定向到404，这个路由在注册的时候，必须是注册在最后一个
export const anyRoutes = [
  // 404 page must be placed at the end !!!
  { path: "*", redirect: "/404", hidden: true },
];
